package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author
 */
public class Supplierorder implements Serializable {
    private String usno;

    private String suno;

    private String uno;

    private String usprice;

    private Date ustime;

    private Date usdate;

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private Supplier supplier;

    private User user;


    private static final long serialVersionUID = 1L;

    public String getUsno() {
        return usno;
    }

    public void setUsno(String usno) {
        this.usno = usno;
    }

    public String getSuno() {
        return suno;
    }

    public void setSuno(String suno) {
        this.suno = suno;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }

    public String getUsprice() {
        return usprice;
    }

    public void setUsprice(String usprice) {
        this.usprice = usprice;
    }

    public Date getUstime() {
        return ustime;
    }

    public void setUstime(Date ustime) {
        this.ustime = ustime;
    }

    public Date getUsdate() {
        return usdate;
    }

    public void setUsdate(Date usdate) {
        this.usdate = usdate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Supplierorder other = (Supplierorder) that;
        return (this.getUsno() == null ? other.getUsno() == null : this.getUsno().equals(other.getUsno()))
                && (this.getSuno() == null ? other.getSuno() == null : this.getSuno().equals(other.getSuno()))
                && (this.getUno() == null ? other.getUno() == null : this.getUno().equals(other.getUno()))
                && (this.getUsprice() == null ? other.getUsprice() == null : this.getUsprice().equals(other.getUsprice()))
                && (this.getUstime() == null ? other.getUstime() == null : this.getUstime().equals(other.getUstime()))
                && (this.getUsdate() == null ? other.getUsdate() == null : this.getUsdate().equals(other.getUsdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUsno() == null) ? 0 : getUsno().hashCode());
        result = prime * result + ((getSuno() == null) ? 0 : getSuno().hashCode());
        result = prime * result + ((getUno() == null) ? 0 : getUno().hashCode());
        result = prime * result + ((getUsprice() == null) ? 0 : getUsprice().hashCode());
        result = prime * result + ((getUstime() == null) ? 0 : getUstime().hashCode());
        result = prime * result + ((getUsdate() == null) ? 0 : getUsdate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", usno=").append(usno);
        sb.append(", suno=").append(suno);
        sb.append(", uno=").append(uno);
        sb.append(", usprice=").append(usprice);
        sb.append(", ustime=").append(ustime);
        sb.append(", usdate=").append(usdate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}